from themoviedb import tmdb
import pprint
tmdb.config = {}
tmdb.config['apikey'] = "104e67f6ef05585ed35eec68f5cae0bf"
tmdb.config['urls'] = {}
tmdb.config['urls']['movie.search'] = "http://api.themoviedb.org/2.1/Movie.search/fr/xml/%(apikey)s/%%s" % (tmdb.config)
tmdb.config['urls']['movie.getInfo'] = "http://api.themoviedb.org/2.1/Movie.getInfo/fr/xml/%(apikey)s/%%s" % (tmdb.config)
tmdb.config['urls']['media.getInfo'] = "http://api.themoviedb.org/2.1/Media.getInfo/fr/xml/%(apikey)s/%%s/%%s" % (tmdb.config)
tmdb.config['urls']['imdb.lookUp'] = "http://api.themoviedb.org/2.1/Movie.imdbLookup/fr/xml/%(apikey)s/%%s" % (tmdb.config)

webapi = tmdb.MovieDb()
movie = webapi.search("alice au pays des merveilles")[0]
pprint.pprint(movie.items())
for image in movie["images"]:
	pprint.pprint(image.items())


